---@class LuaDebug
local this = {IsEmmyLuaByIDEA = true}

function this.Init()
    if this.IsEmmyLuaByIDEA then
        package.cpath = package.cpath .. 
        ';C:/Users/Administrator/AppData/Roaming/JetBrains/IdeaIC2020.1/plugins/intellij-emmylua/classes/debugger/emmy/windows/x64/?.dll'
        local dbg = require('emmy_core')
        dbg.tcpConnect('localhost', 9966)
    else
        package.cpath = package.cpath ..
            ";c:/Users/Administrator/.vscode/extensions/tangzx.emmylua-0.3.52/debugger/emmy/windows/x64/?.dll"
        local dbg = require("emmy_core")
        dbg.tcpListen("localhost", 9966)
    end
    print("开启Lua调试")
end

return this